<style lang="scss" scope>
  .login-container{
    width: 400px;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: absolute;
    text-align: center;
    left: 0;
    right: 0;
    top: -100px;
    bottom: 0;
    margin: auto;
    
    .item{
        width: 80%;
        margin: 30px auto;
    }
    .username{
        width: 50%;
        margin-top: 30px;
    }
    .password{
        width: 50%;
    }
    .login{
        margin-right: 30px;
    }
    .item:last-child{
        text-align: right;
    }
  }
</style>
<template>
  <div class="login-container">
    <div class="item">
      <span>用户名：</span>
      <el-input class="username" placeholder="请输入用户名"></el-input>
    </div>
    <div class="item">
      <span>密&nbsp;&nbsp;&nbsp;码：</span>
      <el-input class="password" placeholder="请输入密码" type="password"></el-input>
    </div>
    <div class="item">
      <el-button class="login">登&nbsp;&nbsp;&nbsp;&nbsp;录</el-button>
      <el-button class="registe">注&nbsp;&nbsp;&nbsp;&nbsp;册</el-button>
    </div>
    <div class="item">
      <a class="forget" href="#">忘记密码？</a>
    </div>
  </div>
</template>

<script>
  import {
      Table,
      TableColumn,
      Button,
      Dropdown,
      DropdownMenu,
      DropdownItem,
      Input,
      Slider,
    } from 'element-ui'
  export default {
    components: { 
      'el-table': Table,
      'el-table-column': TableColumn,
      'el-button': Button,
      'el-dropdown': Dropdown,
      'el-dropdown-menu': DropdownMenu,
      'el-dropdown-item': DropdownItem,
      'el-input': Input,
      'el-slider': Slider,
    },
    data() {
      return {};
    },
    methods: {
      empty() {

      }
    }
  };
</script>

